/*
 * Copyright (c) 2020 Fraunhofer FOKUS and others. All rights reserved.
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contact: mosaic@fokus.fraunhofer.de
 */
package org.eclipse.mosaic.fed.application.app.api;

import org.eclipse.mosaic.fed.application.ambassador.simulation.mec.MecDetector;
import org.eclipse.mosaic.fed.application.app.api.os.MultiAccessEdgeComputingOperatingSystem;
import org.eclipse.mosaic.lib.objects.traffic.MecDetectorInfo;

public interface MultiAccessEdgeComputingApplication extends Application, OperatingSystemAccess<MultiAccessEdgeComputingOperatingSystem> {

    /**
     * This method is called when any subscribe {@link MecDetector} of the unit
     * has been updated. This requires this mec unit to process according to the updated message
     * @param updatedMecDetector updated {@link MecDetector} state
     */
    void onMecDetectorUpdated(MecDetectorInfo updatedMecDetector);
}
